package com.gl.admin.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
/**
 * 业务层异常
 */
public class ServiceException extends RuntimeException {

    private Integer code;

    public ServiceException(Integer code,String mes) {
        super(mes); //调用父类
        this.code = code;
    }



}
